//
//  EFSChartAdapter.h
//  EFSMobile
//
//  Created by Chuan on 11/18/15.
//  Copyright © 2015 Elephants Financial Service. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ChartSocketController.h"

@interface EFSChartAdapter : NSObject <ChartSocketControllerDelegate>

+ (nonnull instancetype) sharedAdapter;

/**重新设置行情需要的url，用来转换测试或生成环境*/
- (void) configUrls;

- (void) clearAllIndexPermission;

- (void) clearAllIndexPermissionWithQuoteId:(nonnull NSString *)quoteId;

- (void) changeIndexPermission:(nonnull NSString *) sid withLineType:(nonnull NSString *) lineType withIndexType:(nonnull NSString *) indexType withPermission:(int)permission;

- (void) addMetalSync: (nonnull YSSecurities *) quote;
- (void) updateQuotePrice:(nonnull YSSecurities *) quote;

- (void) clearAllDataCache;

- (float) getCacheInfo;


- (RACSignal *)updateCustomerCodeWithContent:(NSString *)content;

- (RACSignal *)requestTargetWithVarietyVersion:(NSString *)varietyVersion;

@end
